package com.kma.summer2012.client.events.authorization;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;


public class PasswordRecoveryEvent extends GwtEvent<PasswordRecoveryEvent.PasswordRecoveryEventHandler> {

    private static Type<PasswordRecoveryEventHandler> TYPE = new Type<PasswordRecoveryEventHandler>();

    public interface PasswordRecoveryEventHandler extends EventHandler {
        void onPasswordRecovery(PasswordRecoveryEvent event);
    }

    @Override
    public Type<PasswordRecoveryEventHandler> getAssociatedType() {
        return TYPE;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public static Type<PasswordRecoveryEventHandler> getType() {
        return TYPE;
    }

    @Override
    protected void dispatch(PasswordRecoveryEventHandler handler) {
        handler.onPasswordRecovery(this);
    }

}
